package ycj.learn.spring.ioc.troditional;


import ycj.learn.spring.ioc.common.InventoryService;
import ycj.learn.spring.ioc.common.MoneyService;
import ycj.learn.spring.ioc.common.TradeService;
import ycj.learn.spring.ioc.common.UserService;

public class Entry {
    public static void main(String[] args) {
        String buyer = "张三";
        String seller = "李四";
        int quantity = 10;

        UserService userService;

        userService = new UserService();

        MoneyService moneyService = new MoneyService(userService);

        InventoryService inventoryService = new InventoryService(userService);

        TradeService service = new TradeService();

        service.trade(buyer, seller, quantity);
    }


}
